package a.f.l;

import a.c.d;
import a.c.k;
import a.c.m;
import a.c.n;
import a.f.o;
import a.i.p;

class db
{
  private o a;
  private g b;
  private byte c;
  private k d;
  private n e;
  
  public db(o paramo, g paramg)
  {
    this.a = paramo;
    this.b = paramg;
  }
  
  n a()
  {
    return this.e;
  }
  
  public void b()
  {
    int i = g.Cc;
    Object localObject;
    k localk;
    if (i == 0) {
      if (this.b.G() == 2)
      {
        localObject = this.b.c();
        localk = this.a.c(localObject);
        if (localk != null) {
          return;
        }
        throw new IllegalStateException("No DataProvider " + localObject + " registered with graph!");
      }
    }
    if ((i != 0) || (this.b.G() == 4))
    {
      localObject = this.b.b();
      localk = this.a.c(localObject);
      if (localk == null) {
        throw new IllegalStateException("No DataProvider " + localObject + " registered with graph!");
      }
    }
  }
  
  public void c()
  {
    int j = g.Cc;
    int i = g.Bc;
    e();
    Object localObject = this.b.c();
    k localk = this.a.c(localObject);
    if (j == 0)
    {
      if (localk != null) {
        this.e = a.i.db.b();
      }
    }
    else
    {
      m localm = this.a.w();
      if (localm.e()) {}
      while (j != 0)
      {
        this.e.a(localm.a(), localk.getBool(localm.a()));
        localm.f();
        if ((j == 0) && (i != 0)) {
          return;
        }
        if (i == 0) {
          break;
        }
      }
      this.a.a(localObject, this.e);
    }
  }
  
  public void e()
  {
    this.c = this.b.G();
    this.b.b((byte)2);
    Object localObject1 = this.b.c();
    this.d = this.a.c(localObject1);
    k localk = this.a.c(this.b.b());
    Object localObject2 = null;
    if (g.Cc == 0) {
      if (this.c == 0)
      {
        localObject2 = new p()
        {
          public boolean getBool(Object paramAnonymousObject)
          {
            return true;
          }
        };
        break label99;
      }
    }
    if (this.c == 4) {
      localObject2 = new p()
      {
        private final k val$selectedNodesDP;
        
        public boolean getBool(Object paramAnonymousObject)
        {
          int i = g.Cc;
          d locald = (d)paramAnonymousObject;
          if (i == 0) {
            if (this.val$selectedNodesDP == null) {
              return true;
            }
          }
          if (i == 0) {
            if (!this.val$selectedNodesDP.getBool(locald.e())) {
              if (i != 0) {
                break label63;
              }
            }
          }
          label63:
          return this.val$selectedNodesDP.getBool(locald.f());
        }
      };
    }
    label99:
    if (localObject2 != null)
    {
      this.b.b((byte)2);
      this.a.a(localObject1, (k)localObject2);
    }
  }
  
  public void f()
  {
    int i = g.Cc;
    if (i == 0) {
      if (this.c != 2)
      {
        Object localObject = this.b.c();
        if (i == 0) {
          if (this.d != null)
          {
            if (i != 0) {
              break label66;
            }
            this.a.a(localObject, this.d);
            if (g.Bc == 0) {
              break label65;
            }
          }
        }
        this.a.j(localObject);
        label65:
        label66:
        this.b.b(this.c);
      }
    }
    if ((i != 0) || (this.e != null)) {
      this.e = null;
    }
  }
}


/* Location:           E:\idea\
 * Qualified Name:     a.f.l.db
 * JD-Core Version:    0.7.0.1
 */